<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta name="generator" content="ApiGen 2.8.0" />

	<title>Class TidyHelper</title>

	<script type="text/javascript" src="resources/combined.js?394153670"></script>
	<script type="text/javascript" src="elementlist.js?1800566221"></script>
	<link rel="stylesheet" type="text/css" media="all" href="resources/style.css?3505392360" />

</head>

<body>
<div id="left">
	<div id="menu">
		<a href="index.html" title="Overview"><span>Overview</span></a>


		<div id="groups">
			<h3>Packages</h3>
			<ul>
				<li><a href="package-abismo.html">abismo<span></span></a>
						<ul>
				<li><a href="package-abismo.admin.html">admin</a>
						</li>
				<li><a href="package-abismo.home.html">home</a>
						</li>
				<li><a href="package-abismo.images.html">images</a>
						</li>
				<li><a href="package-abismo.projects.html">projects</a>
						</li>
				<li><a href="package-abismo.Services.html">Services</a>
						</li>
				<li><a href="package-abismo.studio.html">studio</a>
						</li>
				<li><a href="package-abismo.tenders.html">tenders</a>
						</li>
				<li><a href="package-abismo.users.html">users</a>
						</li>
				<li><a href="package-abismo.videos.html">videos</a>
						</li>
				<li><a href="package-abismo.view.html">view<span></span></a>
						<ul>
				<li><a href="package-abismo.view.helpers.html">helpers</a>
						</li>
							</ul></li></ul></li>
				<li><a href="package-app.html">app<span></span></a>
						<ul>
				<li><a href="package-app.Config.html">Config<span></span></a>
						<ul>
				<li><a href="package-app.Config.Schema.html">Schema</a>
						</li>
							</ul></li>
				<li><a href="package-app.Model.html">Model<span></span></a>
						<ul>
				<li><a href="package-app.Model.debug.html">debug<span></span></a>
						<ul>
				<li><a href="package-app.Model.debug.kit.html">kit</a>
						</li>
							</ul></li></ul></li>
				<li><a href="package-app.View.html">View<span></span></a>
						<ul>
				<li><a href="package-app.View.Helper.html">Helper<span></span></a>
						<ul>
				<li><a href="package-app.View.Helper.debug.html">debug<span></span></a>
						<ul>
				<li><a href="package-app.View.Helper.debug.kit.html">kit<span></span></a>
						<ul>
				<li><a href="package-app.View.Helper.debug.kit.views.html">views<span></span></a>
						<ul>
				<li><a href="package-app.View.Helper.debug.kit.views.helpers.html">helpers</a>
						</li>
							</ul></li></ul></li></ul></li></ul></li></ul></li></ul></li>
				<li><a href="package-cake.html">cake<span></span></a>
						<ul>
				<li><a href="package-cake.debug.html">debug<span></span></a>
						<ul>
				<li><a href="package-cake.debug.kit.html">kit<span></span></a>
						<ul>
				<li><a href="package-cake.debug.kit.panels.html">panels</a>
						</li>
							</ul></li></ul></li></ul></li>
				<li class="active"><a href="package-debug.html">debug<span></span></a>
						<ul>
				<li class="active"><a href="package-debug.kit.html">kit<span></span></a>
						<ul>
				<li><a href="package-debug.kit.components.html">components</a>
						</li>
				<li><a href="package-debug.kit.controllers.html">controllers<span></span></a>
						<ul>
				<li><a href="package-debug.kit.controllers.components.html">components</a>
						</li>
							</ul></li>
				<li><a href="package-debug.kit.Lib.html">Lib</a>
						</li>
				<li><a href="package-debug.kit.models.html">models<span></span></a>
						<ul>
				<li><a href="package-debug.kit.models.behaviors.html">behaviors</a>
						</li>
							</ul></li>
				<li><a href="package-debug.kit.vendors.html">vendors</a>
						</li>
				<li class="active"><a href="package-debug.kit.views.html">views<span></span></a>
						<ul>
				<li class="active"><a href="package-debug.kit.views.helpers.html">helpers</a>
						</li>
							</ul></li></ul></li></ul></li>
				<li><a href="package-localized.html">localized</a>
						</li>
				<li><a href="package-Localized.html">Localized<span></span></a>
						<ul>
				<li><a href="package-localized.tests.html">tests<span></span></a>
						<ul>
				<li><a href="package-localized.tests.cases.html">cases<span></span></a>
						<ul>
				<li><a href="package-localized.tests.cases.libs.html">libs</a>
						</li>
							</ul></li></ul></li>
				<li><a href="package-Localized.Validation.html">Validation</a>
						</li>
							</ul></li>
				<li><a href="package-None.html">None</a>
						</li>
				<li><a href="package-PHP.html">PHP</a>
						</li>
			</ul>
		</div>

		<hr />


		<div id="elements">
			<h3>Classes</h3>
			<ul>
				<li><a href="class-FireCake.html">FireCake</a></li>
				<li class="active"><a href="class-TidyHelper.html">TidyHelper</a></li>
			</ul>





			<h3>Functions</h3>
			<ul>
				<li><a href="function-firecake.html">firecake</a></li>
			</ul>
		</div>
	</div>
</div>

<div id="splitter"></div>

<div id="right">
<div id="rightInner">
	<form id="search">
		<input type="hidden" name="cx" value="" />
		<input type="hidden" name="ie" value="UTF-8" />
		<input type="text" name="q" class="text" />
		<input type="submit" value="Search" />
	</form>

	<div id="navigation">
		<ul>
			<li>
				<a href="index.html" title="Overview"><span>Overview</span></a>
			</li>
			<li>
				<a href="package-debug.kit.views.helpers.html" title="Summary of debug\kit\views\helpers"><span>Package</span></a>
			</li>
			<li class="active">
<span>Class</span>			</li>
		</ul>
		<ul>
			<li>
				<a href="tree.html" title="Tree view of classes, interfaces, traits and exceptions"><span>Tree</span></a>
			</li>
		</ul>
		<ul>
		</ul>
	</div>

<div id="content" class="class">
	<h1>Class TidyHelper</h1>


	<div class="description">
	
<p>TidyHelper class</p>

	</div>

	<dl class="tree">
		<dd style="padding-left:0px">
Helper
			
			
		</dd>
		<dd style="padding-left:30px">
			<img src="resources/inherit.png" alt="Extended by" />
			<a href="class-AppHelper.html"><span>AppHelper</span></a>
			
			
			
		</dd>
		<dd style="padding-left:60px">
			<img src="resources/inherit.png" alt="Extended by" />
<b><span>TidyHelper</span></b>			
			
			
		</dd>
	</dl>








	<div class="info">
		
		
		
		<b>Package:</b> <a href="package-debug.html">debug</a>\<a href="package-debug.kit.html">kit</a>\<a href="package-debug.kit.views.html">views</a>\<a href="package-debug.kit.views.helpers.html">helpers</a><br />

				<b>Uses:</b>
				<code><code><a href="class-AppHelper.html">AppHelper</a></code></code> <br />
		<b>Located at</b> <a href="source-class-TidyHelper.html#22-183" title="Go to source code">Plugin/DebugKit/View/Helper/TidyHelper.php</a><br />
	</div>



	<table class="summary" id="methods">
	<caption>Methods summary</caption>
	<tr data-order="process" id="_process">

		<td class="attributes"><code>
			 public 
			array
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_process">#</a>
		<code><a href="source-class-TidyHelper.html#47-89" title="Go to source code">process</a>( <span>string <var>$html</var> = <span class="php-quote">''</span></span>, <span>string <var>&amp; $out</var> = <span class="php-quote">''</span></span> )</code>

		<div class="description short">
			
<p>Return a nested array of errors for the passed html string Fudge the markup
slightly so that the tag which is invalid is highlighted</p>

		</div>

		<div class="description detailed hidden">
			
<p>Return a nested array of errors for the passed html string Fudge the markup
slightly so that the tag which is invalid is highlighted</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$html</var></dt>
					<dd><code>string</code><br>$html ''</dd>
					<dt><var>$out</var></dt>
					<dd><code>string</code><br>$out ''</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>array</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="report" id="_report">

		<td class="attributes"><code>
			 public 
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_report">#</a>
		<code><a href="source-class-TidyHelper.html#91-118" title="Go to source code">report</a>( <span>mixed <var>$html</var> = <span class="php-keyword1">null</span></span> )</code>

		<div class="description short">
			
<p>report method</p>

		</div>

		<div class="description detailed hidden">
			
<p>report method</p>

<p>Call process if a string is passed, or no prior results exist - and return
the results using the toolbar helper to generate a nested navigatable array</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$html</var></dt>
					<dd><code>mixed</code><br>$html null</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="tidyErrors" id="_tidyErrors">

		<td class="attributes"><code>
			 public 
			string
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#_tidyErrors">#</a>
		<code><a href="source-class-TidyHelper.html#120-155" title="Go to source code">tidyErrors</a>( <span>string <var>$in</var> = <span class="php-quote">''</span></span>, <span>string <var>&amp; $out</var> = <span class="php-quote">''</span></span> )</code>

		<div class="description short">
			
<p>Run the html string through tidy, and return the (raw) errors. pass back a
reference to the normalized string so that the error messages can be linked to
the line that caused them.</p>

		</div>

		<div class="description detailed hidden">
			
<p>Run the html string through tidy, and return the (raw) errors. pass back a
reference to the normalized string so that the error messages can be linked to
the line that caused them.</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$in</var></dt>
					<dd><code>string</code><br>$in ''</dd>
					<dt><var>$out</var></dt>
					<dd><code>string</code><br>$out ''</dd>
				</dl></div>

				<h4>Returns</h4>
				<div class="list">
					<code>string</code><br />
				</div>




		</div>
		</div></td>
	</tr>
	<tr data-order="_exec" id="__exec">

		<td class="attributes"><code>
			 protected 
			
			
			</code>
		</td>

		<td class="name"><div>
		<a class="anchor" href="#__exec">#</a>
		<code><a href="source-class-TidyHelper.html#157-181" title="Go to source code">_exec</a>( <span>mixed <var>$cmd</var></span>, <span>mixed <var>&amp; $out</var> = <span class="php-keyword1">null</span></span> )</code>

		<div class="description short">
			
<p>exec method</p>

		</div>

		<div class="description detailed hidden">
			
<p>exec method</p>



				<h4>Parameters</h4>
				<div class="list"><dl>
					<dt><var>$cmd</var></dt>
					<dd><code>mixed</code><br>$cmd</dd>
					<dt><var>$out</var></dt>
					<dd><code>mixed</code><br>$out null</dd>
				</dl></div>





		</div>
		</div></td>
	</tr>
	</table>












	<table class="summary" id="properties">
	<caption>Properties summary</caption>
	<tr data-order="helpers" id="$helpers">
		<td class="attributes"><code>
			public  
			array
		</code></td>

		<td class="name">
				<a href="source-class-TidyHelper.html#31-37" title="Go to source code"><var>$helpers</var></a>
		</td>
		<td class="value"><code><span class="php-keyword1">array</span>(<span class="php-quote">'DebugKit.Toolbar'</span>)</code></td>
		<td class="description"><div>
			<a href="#$helpers" class="anchor">#</a>

			<div class="description short">
				
<p>helpers property</p>

			</div>

			<div class="description detailed hidden">
				
<p>helpers property</p>


			</div>
		</div></td>
	</tr>
	<tr data-order="results" id="$results">
		<td class="attributes"><code>
			public  
			mixed
		</code></td>

		<td class="name">
				<a href="source-class-TidyHelper.html#39-45" title="Go to source code"><var>$results</var></a>
		</td>
		<td class="value"><code><span class="php-keyword1">null</span></code></td>
		<td class="description"><div>
			<a href="#$results" class="anchor">#</a>

			<div class="description short">
				
<p>results property</p>

			</div>

			<div class="description detailed hidden">
				
<p>results property</p>


			</div>
		</div></td>
	</tr>
	</table>






</div>

	<div id="footer">
		 API documentation generated by <a href="http://apigen.org">ApiGen 2.8.0</a>
	</div>
</div>
</div>
</body>
</html>
